﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Xml;
using TestProject1.EAIServiceReference;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [Owner("AURA"), TestMethod]
        public void AURACheckRuleTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            //xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>10222222221120121108192128_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>3</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>Y</PRT2OPT><ZNGPCNO></ZNGPCNO><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>102222222211</TTMPRCNO><Chdrnum /><OCCDATE>20121025</OCCDATE><HPROPDTE>20121025</HPROPDTE><HPRRCVDT>20121025</HPRRCVDT><ZDDTEDIF>0</ZDDTEDIF><PolicyOwner><OWNERSEL>60004672</OWNERSEL><SALUTL>MR / MRS</SALUTL><LSURNAME>保单</LSURNAME><DOB>19630118</DOB><Age>49</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD></MARRYD><ZACLTADDR>居住地址</ZACLTADDR><CLTPCODE>122222</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>工作单位</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>21010219630118948X</SECUITYNO><EXPDTE>99999999</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL>12.0</DECGRSAL><RMBLPHONE>22222222222</RMBLPHONE><CLTPHONE></CLTPHONE><RINTERNET>22@22.2</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>N</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD>ASJI</ZNRSKCD><SUMINS>10000.0</SUMINS><ZNRSKCD>ASLI</ZNRSKCD><SUMINS>10000.0</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT>03</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>1</SRCEBUS><DLVRMODE>04</DLVRMODE><ZAPSTADD>居住地址</ZAPSTADD><CLTPCODE03>122222</CLTPCODE03><ZNAGNTSEL>8609000003</ZNAGNTSEL><AGCOMRT>100</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME></ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02>ASJI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02><ZNRSKCD02>ASLI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60004673</LIFCNUM><SALUTL02>MR / MRS</SALUTL02><LSURNAME02>失败</LSURNAME02><DOB02>19890118</DOB02><Age02>23</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02></MARRYD02><ZACLTADDR02>12</ZACLTADDR02><CLTPCODE02>222222</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>工作单位</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>320602198901185142</SECUITYNO02><EXPDTE02>99999999</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02>12.0</DECGRSAL02><RMBLPHONE02>22222222222</RMBLPHONE02><CLTPHONE02></CLTPHONE02><RINTERNET02>22@2.2</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>N</ZNPIDCPYID02></InsuredInfo><RELATION>05</RELATION><SELECTION></SELECTION><HEIGHT>165</HEIGHT><WEIGHT>77</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A05</QUESTIDF><ANSWER>165</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>77</ANSWER></Question><Question><QUESTIDF>S02</QUESTIDF><ANSWER>Y</ANSWER></Question><Question><QUESTIDF>S04</QUESTIDF><ANSWER>Y</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>WL02A</ZNPRDCODE><SUMIN>10000.0</SUMIN><RCESSAGE>106</RCESSAGE><RCESSTRM>0</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>336.0</INSTPRM><LMPCNT /><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY></BANKKEY><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN></FREQANN><ADVANCE></ADVANCE><ARREARS></ARREARS><GUARPERD></GUARPERD><WITHPROP></WITHPROP><WITHOPROP></WITHOPROP><NOMLIFE></NOMLIFE><DTHPERCN></DTHPERCN><DTHPERCO></DTHPERCO><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN></RSUNIN><PRCAMTIND></PRCAMTIND><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01></ZACOVBAK01><ZACOVBAK02></ZACOVBAK02><ZACOVBAK03></ZACOVBAK03><ZACOVBAK04></ZACOVBAK04><ZACOVBAK05></ZACOVBAK05></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL /><SALUTL04>MR &amp; MRS</SALUTL04><LSURNAME04>失败</LSURNAME04><DOB04>19890118</DOB04><CLTSEX04>F</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>12</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>工作单位</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>1</IDNPRF04><SECUITYNO04>320602198901185142</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04>N</ZNPIDCPYID04><CLTRELN02>00</CLTRELN02><BNYPC>100.0</BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R>1</BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE>CN</RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP>N</ZNOVRPAYOP><PackageInfo><ZNPKGCODE /><TOTPRE /><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG></ZNEPOLFLG><ZNBNKODR></ZNBNKODR><ZNDISPER></ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND></ZNVIPIND><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60004672</OWNERSEL05><LSURNAME05>保单</LSURNAME05><DOB05>1963-01-18</DOB05><CLTSEX05>1</CLTSEX05><SECUITYNO05>21010219630118948X</SECUITYNO05><RMBLPHONE05>22222222222</RMBLPHONE05><CLTPHONE05></CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60004673</LIFCNUM06><LSURNAME06>失败</LSURNAME06><DOB06>1989-01-18</DOB06><CLTSEX06>1</CLTSEX06><SECUITYNO06>320602198901185142</SECUITYNO06><RMBLPHONE06>22222222222</RMBLPHONE06><CLTPHONE06></CLTPHONE06></Insured></InsuredList><BeneficiaryList /><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>102222222211</TTMPRCNO02><CHDRNUM02 /><ZNAGNTSEL02>8609000003</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121025</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02>01</COVERAGE02><RIDER02>00</RIDER02><ZNPRDCODE02>WL02A</ZNPRDCODE02><RCESSAGE02>106</RCESSAGE02><RCESSTRM02>0</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>1731124260403_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>3</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>Y</PRT2OPT><ZNGPCNO></ZNGPCNO><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>102222222211</TTMPRCNO><Chdrnum /><OCCDATE>20121025</OCCDATE><HPROPDTE>20121025</HPROPDTE><HPRRCVDT>20121025</HPRRCVDT><ZDDTEDIF>0</ZDDTEDIF><PolicyOwner><OWNERSEL>60004672</OWNERSEL><SALUTL>MR / MRS</SALUTL><LSURNAME>保单</LSURNAME><DOB>19630118</DOB><Age>49</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD></MARRYD><ZACLTADDR>居住地址</ZACLTADDR><CLTPCODE>122222</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>工作单位</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>21010219630118948X</SECUITYNO><EXPDTE>99999999</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL>12.0</DECGRSAL><RMBLPHONE>22222222222</RMBLPHONE><CLTPHONE></CLTPHONE><RINTERNET>22@22.2</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>N</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD>ASJI</ZNRSKCD><SUMINS>10000.0</SUMINS><ZNRSKCD>ASLI</ZNRSKCD><SUMINS>10000.0</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT>03</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>1</SRCEBUS><DLVRMODE>04</DLVRMODE><ZAPSTADD>居住地址</ZAPSTADD><CLTPCODE03>122222</CLTPCODE03><ZNAGNTSEL>8609000003</ZNAGNTSEL><AGCOMRT>100</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME></ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02>ASJI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02><ZNRSKCD02>ASLI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60004673</LIFCNUM><SALUTL02>MR / MRS</SALUTL02><LSURNAME02>失败</LSURNAME02><DOB02>19890118</DOB02><Age02>23</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02></MARRYD02><ZACLTADDR02>12</ZACLTADDR02><CLTPCODE02>222222</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>工作单位</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>320602198901185142</SECUITYNO02><EXPDTE02>99999999</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02>12.0</DECGRSAL02><RMBLPHONE02>22222222222</RMBLPHONE02><CLTPHONE02></CLTPHONE02><RINTERNET02>22@2.2</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>N</ZNPIDCPYID02></InsuredInfo><RELATION>05</RELATION><SELECTION></SELECTION><HEIGHT>165</HEIGHT><WEIGHT>77</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A05</QUESTIDF><ANSWER>165</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>77</ANSWER></Question><Question><QUESTIDF>S02</QUESTIDF><ANSWER>Y</ANSWER></Question><Question><QUESTIDF>S04</QUESTIDF><ANSWER>Y</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>WL02A</ZNPRDCODE><SUMIN>10000.0</SUMIN><RCESSAGE>106</RCESSAGE><RCESSTRM>0</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>336.0</INSTPRM><LMPCNT /><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY></BANKKEY><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN></FREQANN><ADVANCE></ADVANCE><ARREARS></ARREARS><GUARPERD></GUARPERD><WITHPROP></WITHPROP><WITHOPROP></WITHOPROP><NOMLIFE></NOMLIFE><DTHPERCN></DTHPERCN><DTHPERCO></DTHPERCO><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN></RSUNIN><PRCAMTIND></PRCAMTIND><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01></ZACOVBAK01><ZACOVBAK02></ZACOVBAK02><ZACOVBAK03></ZACOVBAK03><ZACOVBAK04></ZACOVBAK04><ZACOVBAK05></ZACOVBAK05></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL /><SALUTL04>MR &amp; MRS</SALUTL04><LSURNAME04>失败</LSURNAME04><DOB04>19890118</DOB04><CLTSEX04>F</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>12</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>工作单位</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>1</IDNPRF04><SECUITYNO04>320602198901185142</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04>N</ZNPIDCPYID04><CLTRELN02>00</CLTRELN02><BNYPC>100.0</BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R>1</BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE>CN</RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP>N</ZNOVRPAYOP><PackageInfo><ZNPKGCODE /><TOTPRE /><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG></ZNEPOLFLG><ZNBNKODR></ZNBNKODR><ZNDISPER></ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND></ZNVIPIND><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60004672</OWNERSEL05><LSURNAME05>保单</LSURNAME05><DOB05>1963-01-18</DOB05><CLTSEX05>1</CLTSEX05><SECUITYNO05>21010219630118948X</SECUITYNO05><RMBLPHONE05>22222222222</RMBLPHONE05><CLTPHONE05></CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60004673</LIFCNUM06><LSURNAME06>失败</LSURNAME06><DOB06>1989-01-18</DOB06><CLTSEX06>1</CLTSEX06><SECUITYNO06>320602198901185142</SECUITYNO06><RMBLPHONE06>22222222222</RMBLPHONE06><CLTPHONE06></CLTPHONE06></Insured></InsuredList><BeneficiaryList /><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>102222222211</TTMPRCNO02><CHDRNUM02 /><ZNAGNTSEL02>8609000003</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121025</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02>01</COVERAGE02><RIDER02>00</RIDER02><ZNPRDCODE02>WL02A</ZNPRDCODE02><RCESSAGE02>106</RCESSAGE02><RCESSTRM02>0</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "underwrite",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [Owner("AURA"), TestMethod]
        public void AURACheckRuleErrorTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>MLC_Test1</UniqueID><Company>NJ</Company><SetCode>16</SetCode><SubSet>1</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>MTS</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>N</PRT2OPT><ZNGPCNO /><STATCODE>PS</STATCODE><CNTBRANCH></CNTBRANCH><TTMPRCNO /><Chdrnum /><OCCDATE>20121013</OCCDATE><HPROPDTE>20121017</HPROPDTE><HPRRCVDT>20121017</HPRRCVDT><ZDDTEDIF /><PolicyOwner><OWNERSEL></OWNERSEL><SALUTL>MR &amp; MRS</SALUTL><LSURNAME>LSURNAME</LSURNAME><DOB>19850203</DOB><Age>27</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD>S</MARRYD><ZACLTADDR>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZACLTADDR><CLTPCODE>200092</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT></ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>310109198502032523</SECUITYNO><EXPDTE>9999-12-31</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL></DECGRSAL><RMBLPHONE>018602199751</RMBLPHONE><CLTPHONE>018602199751</CLTPHONE><RINTERNET></RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>Y</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD /><SUMINS /><ZNRSKCD /><SUMINS /><ZNRSKCD /><SUMINS /></OWNRISKSILIST><BILLFREQ>12</BILLFREQ><ZNFPMOP>D</ZNFPMOP><MOP>D</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT></ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>TM</SRCEBUS><DLVRMODE /><ZAPSTADD>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZAPSTADD><CLTPCODE03>200092</CLTPCODE03><ZNAGNTSEL>802649</ZNAGNTSEL><AGCOMRT></AGCOMRT><SubAgentList><ZNAGNTSEL01>802649</ZNAGNTSEL01><SPLITC>100</SPLITC><ZNAGNTSEL01 /><SPLITC /><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME>李从玲/802649</ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02 /><SUMINS02 /><ZNRSKCD02 /><SUMINS02 /><ZNRSKCD02 /><SUMINS02 /></INSRISKSILIST><InsuredInfo><LIFCNUM>CUSTOMID13</LIFCNUM><SALUTL02>MR/MRS</SALUTL02><LSURNAME02>俎四</LSURNAME02><DOB02>19850203</DOB02><Age02>27</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02>S</MARRYD02><ZACLTADDR02>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZACLTADDR02><CLTPCODE02>000000</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02></ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>310109198502032523</SECUITYNO02><EXPDTE02>9999-12-31</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02></DECGRSAL02><RMBLPHONE02></RMBLPHONE02><CLTPHONE02>018602199751</CLTPHONE02><RINTERNET02></RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>Y</ZNPIDCPYID02></InsuredInfo><RELATION>00</RELATION><SELECTION>NIL</SELECTION><HEIGHT></HEIGHT><WEIGHT></WEIGHT><SMOKING></SMOKING><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQM3</QUESTSET><QuestionList><Question><QUESTIDF>T01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>T02</QUESTIDF><ANSWER>N</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>RTM214</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE></RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><MORTCLS></MORTCLS><INSTPRM></INSTPRM><LMPCNT></LMPCNT><ZPRFLG></ZPRFLG><ZNINVAMT></ZNINVAMT><ZNTRM></ZNTRM><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY /><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN /><DTHPERCO /><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF><COVINF><Coverage /><RIDER>01</RIDER><ZNPRDCODE>ACI208</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE></RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><MORTCLS></MORTCLS><INSTPRM></INSTPRM><LMPCNT></LMPCNT><ZPRFLG></ZPRFLG><ZNINVAMT></ZNINVAMT><ZNTRM></ZNTRM><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY /><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN /><DTHPERCO /><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>02</BNYTYPE><BNYSEL></BNYSEL><SALUTL04>先生</SALUTL04><LSURNAME04>法定</LSURNAME04><DOB04>20000101</DOB04><CLTSEX04>M</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>未知</ZACLTADDR04><ADDRTYPE04>未知</ADDRTYPE04><ZNBUSUT04>未知</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>03</IDNPRF04><SECUITYNO04>0</SECUITYNO04><EXPDTE04>9999-12-31</EXPDTE04><ZNPIDCPYID04></ZNPIDCPYID04><CLTRELN02>5</CLTRELN02><BNYPC></BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02></BANKKEY02><BANKACCKEY02></BANKACCKEY02><BANKDESC02></BANKDESC02><BNKACTYP02></BNKACTYP02><CURRCODE02>CNY</CURRCODE02><DATEFROM01></DATEFROM01><DATETO></DATETO></FRTRecBank><SEQRecBank><BANKKEY03></BANKKEY03><BANKACCKEY03></BANKACCKEY03><BANKDESC03></BANKDESC03><BNKACTYP03></BNKACTYP03><CURRCODE03>CNY</CURRCODE03><DATEFROM02></DATEFROM02><DATETO02></DATETO02></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R></BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE></RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP></ZNOVRPAYOP><PackageInfo><ZNPKGCODE></ZNPKGCODE><TOTPRE>343.30000000</TOTPRE><ZTOTSI></ZTOTSI></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG>02</ZNEPOLFLG><ZNBNKODR>0000000000000000</ZNBNKODR><ZNDISPER>1</ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND /><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>CUSTOMID13</OWNERSEL05><LSURNAME05>LSURNAME05</LSURNAME05><DOB05>19850203</DOB05><CLTSEX05>F</CLTSEX05><SECUITYNO05>310109198502032523</SECUITYNO05><RMBLPHONE05>018602199751</RMBLPHONE05><CLTPHONE05>018602199751</CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>CUSTOMID13</LIFCNUM06><LSURNAME06>LSURNAME06</LSURNAME06><DOB06>19850203</DOB06><CLTSEX06>F</CLTSEX06><SECUITYNO06>310109198502032523</SECUITYNO06><RMBLPHONE06></RMBLPHONE06><CLTPHONE06>018602199751</CLTPHONE06></Insured></InsuredList><BeneficiaryList><Beneficiary><LSURNAME07>法定</LSURNAME07><BNYSEL07></BNYSEL07><DOB07>20000101</DOB07><CLTSEX07>M</CLTSEX07><SECUITYNO07>0</SECUITYNO07></Beneficiary></BeneficiaryList><PolicyInfo><CNTBRANCH02></CNTBRANCH02><TTMPRCNO02 /><CHDRNUM02 /><ZNAGNTSEL02>802649</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121012</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02 /><RIDER02 /><ZNPRDCODE02 /><RCESSAGE02 /><RCESSTRM02 /></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "underwrite",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "8");
        }

        [Owner("LA1"), TestMethod]
        public void LAinquiryInsPolHistserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            //xmldoc.LoadXml("<Policy><PolicyOwner><OWNERSEL>60003916</OWNERSEL><LSURNAME>TestB</LSURNAME><DOB>19810101</DOB><CLTSEX>M</CLTSEX><IDNNUM></IDNNUM><RMBLPHONE></RMBLPHONE><CLTPHONE01></CLTPHONE01></PolicyOwner><Insureds><Insured><LIFCNUM>60003916</LIFCNUM><LSURNAME>TestB</LSURNAME><DOB>19810101</DOB><CLTSEX>M</CLTSEX><IDNNUM></IDNNUM><RMBLPHONE></RMBLPHONE><CLTPHONE01></CLTPHONE01></Insured></Insureds><BeneficiaryList><Beneficiary><LSURNAME></LSURNAME><BNYSEL></BNYSEL><DOB></DOB><CLTSEX></CLTSEX><IDNNUM></IDNNUM></Beneficiary></BeneficiaryList><PolicyInfo><ProposalNum>00006252</ProposalNum><Chdrnum>00006252</Chdrnum><AGNTSEL>00000050003574</AGNTSEL><CHDRTYPE>R52</CHDRTYPE><OprName></OprName><HPROPDTE>20121019</HPROPDTE><Insured><Life>01</Life><CoverageList><Coverage>01</Coverage><RIDER>00</RIDER><CRTABLE>RTM101</CRTABLE><RCESSAGE></RCESSAGE><RCESSTRM>15</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM></PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><Coverage>01</Coverage><RIDER>01</RIDER><CRTABLE>ACI101</CRTABLE><RCESSAGE></RCESSAGE><RCESSTRM>10</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM></PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM></CoverageList></Insured></PolicyInfo></Policy>");
            //xmldoc.LoadXml("<ns1:Policy xmlns:ns1=\"http://MetLifeEAI.EAISchema\"><ns1:PolicyOwner><ns1:OWNERSEL>CUSTOMID12</ns1:OWNERSEL><ns1:LSURNAME>AS</ns1:LSURNAME><ns1:DOB>19800130</ns1:DOB><ns1:CLTSEX>M</ns1:CLTSEX><ns1:IDNNUM>340603198001300419</ns1:IDNNUM><ns1:RMBLPHONE>13910959000</ns1:RMBLPHONE><ns1:CLTPHONE01>85300000</ns1:CLTPHONE01></ns1:PolicyOwner><ns1:Insureds><ns1:Insured><ns1:LIFCNUM>CUSTOMID13</ns1:LIFCNUM><ns1:LSURNAME>ASD</ns1:LSURNAME><ns1:DOB>19800130</ns1:DOB><ns1:CLTSEX>M</ns1:CLTSEX><ns1:IDNNUM>34060319800130041X</ns1:IDNNUM><ns1:RMBLPHONE>13910959001</ns1:RMBLPHONE><ns1:CLTPHONE01>85300001</ns1:CLTPHONE01></ns1:Insured></ns1:Insureds><ns1:BeneficiaryList><ns1:Beneficiary><ns1:LSURNAME>DFG</ns1:LSURNAME><ns1:BNYSEL>dgdfg</ns1:BNYSEL><ns1:DOB>20120304</ns1:DOB><ns1:CLTSEX>23434</ns1:CLTSEX><ns1:IDNNUM>24234</ns1:IDNNUM></ns1:Beneficiary></ns1:BeneficiaryList><ns1:PolicyInfo><ns1:ProposalNum>BJA001079899</ns1:ProposalNum><ns1:Chdrnum>12000001</ns1:Chdrnum><ns1:AGNTSEL>8601810153</ns1:AGNTSEL><ns1:CHDRTYPE>3456</ns1:CHDRTYPE><ns1:OprName>0000002</ns1:OprName><ns1:HPROPDTE>20120630</ns1:HPROPDTE><ns1:Insured><ns1:Life>01</ns1:Life><ns1:CoverageList><ns1:Coverage>45</ns1:Coverage></ns1:CoverageList></ns1:Insured></ns1:PolicyInfo></ns1:Policy>");
            xmldoc.LoadXml("<ns1:Policy xmlns:ns1=\"http://MetLifeEAI.EAISchema\"><ns1:PolicyOwner><ns1:OWNERSEL>01</ns1:OWNERSEL><ns1:LSURNAME>测试</ns1:LSURNAME><ns1:DOB>19850203</ns1:DOB><ns1:CLTSEX>F</ns1:CLTSEX><ns1:IDNNUM>310109198502032523</ns1:IDNNUM><ns1:RMBLPHONE>018602199751</ns1:RMBLPHONE><ns1:CLTPHONE01>018602199751</ns1:CLTPHONE01></ns1:PolicyOwner><ns1:Insureds><ns1:Insured><ns1:LIFCNUM>01</ns1:LIFCNUM><ns1:LSURNAME>testaura</ns1:LSURNAME><ns1:DOB>19850203</ns1:DOB><ns1:CLTSEX>F</ns1:CLTSEX><ns1:IDNNUM>310109198502032523</ns1:IDNNUM><ns1:RMBLPHONE>0</ns1:RMBLPHONE><ns1:CLTPHONE01>018602199751</ns1:CLTPHONE01></ns1:Insured></ns1:Insureds><ns1:BeneficiaryList><ns1:Beneficiary><ns1:LSURNAME></ns1:LSURNAME><ns1:BNYSEL>01</ns1:BNYSEL><ns1:DOB></ns1:DOB><ns1:CLTSEX></ns1:CLTSEX><ns1:IDNNUM></ns1:IDNNUM></ns1:Beneficiary></ns1:BeneficiaryList><ns1:PolicyInfo><ns1:ProposalNum>TP0000904894</ns1:ProposalNum><ns1:Chdrnum>0</ns1:Chdrnum><ns1:AGNTSEL>8609802649</ns1:AGNTSEL><ns1:CHDRTYPE>NJ</ns1:CHDRTYPE><ns1:OprName>test</ns1:OprName><ns1:HPROPDTE>20121012</ns1:HPROPDTE><ns1:Insured><ns1:Life>01</ns1:Life><ns1:CoverageList><ns1:Coverage>01</ns1:Coverage><ns1:RIDER>01</ns1:RIDER><ns1:CRTABLE>ACI208</ns1:CRTABLE><ns1:RCESSAGE>0</ns1:RCESSAGE><ns1:RCESSTRM>0</ns1:RCESSTRM><ns1:PCESSAGE></ns1:PCESSAGE><ns1:PCESSTRM></ns1:PCESSTRM><ns1:BCESSAGE></ns1:BCESSAGE><ns1:BCESSTRM></ns1:BCESSTRM></ns1:CoverageList></ns1:Insured></ns1:PolicyInfo></ns1:Policy>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "inquiryInsPolHistservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA1"), TestMethod]
        public void LAvalClientserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<val:in0 xmlns:val=\"http://valClient.msp.csc\" xmlns:urn=\"urn:BeanService\" xmlns:val1=\"http://10.165.4.76:8080/axis/services/valClientservice\">  <urn:BRANCH>NJ</urn:BRANCH>  <!--机构代码-->  <urn:COMMITFLAG>Y</urn:COMMITFLAG>  <!--提交标识-->  <urn:COMPANY>2</urn:COMPANY>  <!--公司代码-->  <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD>  <!--是否忽略Driver被Hold-->  <urn:LANGUAGE>E</urn:LANGUAGE>  <!--语言-->  <urn:OBJECTID>CLT</urn:OBJECTID>  <!--BO名称-->  <urn:PASSWORD>123456</urn:PASSWORD>  <!--口令-->  <urn:USRPRF>RZOU</urn:USRPRF>  <!--用户-->  <urn:VERBID>VAL</urn:VERBID>  <!--Method-->  <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC>  <!--抑制RCLRSC-->  <urn:APPCLIENTLIST>    <val1:item>      <urn:CNTBRANCH>NJ</urn:CNTBRANCH>      <!--分公司代码-->      <urn:TTMPRCNO>10002908</urn:TTMPRCNO>      <!--投保单号-->      <urn:ZNBAKFLD></urn:ZNBAKFLD>      <!--预留字段-->      <urn:CLIENTLIST>        <val1:item>          <urn:CLIENTINFO>            <val1:item>              <urn:SEQNO>01</urn:SEQNO>              <!--序号-->              <urn:LSURNAME>何文静</urn:LSURNAME>              <!--姓名-->              <urn:DOB>19890913</urn:DOB>              <!--生日-->              <urn:IDNNUM>320830198909131436</urn:IDNNUM>              <!--证件代码-->            </val1:item>          </urn:CLIENTINFO>        </val1:item>      </urn:CLIENTLIST>    </val1:item>  </urn:APPCLIENTLIST></val:in0>");

            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "valClientservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA1"), TestMethod]
        public void LAcreateProposalserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<cre:in0 xmlns:cre=\"http://createProposal.msp.csc\" xmlns:mh=\"http://www.openuri.org/\" xmlns:cre1=\"http://10.165.4.76:8080/axis/services/createProposalservice\" xmlns:urn=\"urn:BeanService\"><urn:BRANCH>SH</urn:BRANCH><urn:COMMITFLAG>Y</urn:COMMITFLAG><urn:COMPANY>2</urn:COMPANY><urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD><urn:LANGUAGE>S</urn:LANGUAGE><urn:OBJECTID>NBUPL</urn:OBJECTID><urn:PASSWORD>123456</urn:PASSWORD><urn:USRPRF>RZOU</urn:USRPRF><urn:VERBID>CRT</urn:VERBID><urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC><urn:POLST><cre1:item><urn:POLICY><cre1:item><urn:ZNEXTSYS>1</urn:ZNEXTSYS><urn:PRT1OPT>N</urn:PRT1OPT><urn:PRT2OPT>N</urn:PRT2OPT><urn:ZNGPCNO /><urn:AGCOMRT>100</urn:AGCOMRT><urn:STATCODE>IF</urn:STATCODE><urn:CNTBRANCH>SH</urn:CNTBRANCH><urn:TTMPRCNO>128000027691</urn:TTMPRCNO><urn:CHDRNUM>98806270</urn:CHDRNUM><urn:OCCDATE>20130802</urn:OCCDATE><urn:HPROPDTE>20130801</urn:HPROPDTE><urn:HPRRCVDT>20130801</urn:HPRRCVDT><urn:POLICYOWNER><cre1:item><urn:OWNERSEL /><urn:SALUTL>MR / MRS</urn:SALUTL><urn:LSURNAME>测试投保人</urn:LSURNAME><urn:DOB>19850917</urn:DOB><urn:CLTSEX>M</urn:CLTSEX><urn:MARRYD>Z</urn:MARRYD><urn:ZACLTADDR>上海市杨浦区延吉七村</urn:ZACLTADDR><urn:CLTPCODE>666666</urn:CLTPCODE><urn:ADDRTYPE>2</urn:ADDRTYPE><urn:ZNBUSUT /><urn:CTRYCODE>01</urn:CTRYCODE><urn:NATLTY>01</urn:NATLTY><urn:CLRSKIND>1</urn:CLRSKIND><urn:RSKFLG>1</urn:RSKFLG><urn:IDNPRF>02</urn:IDNPRF><urn:SECUITYNO>20000000000001</urn:SECUITYNO><urn:EXPDTE>99999999</urn:EXPDTE><urn:INCPRF /><urn:INCDESC /><urn:DECGRSAL /><urn:RMBLPHONE>15821576966</urn:RMBLPHONE><urn:CLTPHONE>02223558550</urn:CLTPHONE><urn:RINTERNET>zhangsan@163.com</urn:RINTERNET><urn:OCCPCODE>A001</urn:OCCPCODE><urn:ZNPIDCPYID>Y</urn:ZNPIDCPYID></cre1:item></urn:POLICYOWNER><urn:BILLFREQ>00</urn:BILLFREQ><urn:ZNFPMOP>C</urn:ZNFPMOP><urn:MOP>N</urn:MOP><urn:ZDIVOPT>02</urn:ZDIVOPT><urn:ZNFOPT>01</urn:ZNFOPT><urn:CNTCURR>CNY</urn:CNTCURR><urn:BILLCURR>CNY</urn:BILLCURR><urn:REGISTER>01</urn:REGISTER><urn:SRCEBUS>3</urn:SRCEBUS><urn:DLVRMODE>03</urn:DLVRMODE><urn:ZNPSTADD>上海市杨浦区延吉七村</urn:ZNPSTADD><urn:CLTPCODE03>666666</urn:CLTPCODE03><urn:ZNAGNTSEL>GH000800130020</urn:ZNAGNTSEL><urn:AGCOMRT>100</urn:AGCOMRT><urn:SUBAGENTLIST><cre1:item><urn:ZNAGNTSEL /><urn:SPLITC /></cre1:item></urn:SUBAGENTLIST><urn:ZNCSMNAME /><urn:INSLST><cre1:item><urn:INSURED><cre1:item><urn:LIFE>01</urn:LIFE><urn:INSUREDINFO><cre1:item><urn:LIFCNUM /><urn:SALUTL02>MR / MRS</urn:SALUTL02><urn:LSURNAME02>测试被保人</urn:LSURNAME02><urn:DOB02>19850917</urn:DOB02><urn:CLTSEX02>M</urn:CLTSEX02><urn:MARRYD02>Z</urn:MARRYD02><urn:ZACLTADDR02>天津市和平区同安道</urn:ZACLTADDR02><urn:CLTPCODE02>222222</urn:CLTPCODE02><urn:ADDRTYPE02>2</urn:ADDRTYPE02><urn:ZNBUSUT02 /><urn:CTRYCODE02>01</urn:CTRYCODE02><urn:NATLTY02>01</urn:NATLTY02><urn:CLRSKIND02>1</urn:CLRSKIND02><urn:RSKFLG02>1</urn:RSKFLG02><urn:IDNPRF02>02</urn:IDNPRF02><urn:SECUITYNO02>10000000000001</urn:SECUITYNO02><urn:EXPDTE02>99991231</urn:EXPDTE02><urn:INCPRF02 /><urn:INCDESC02 /><urn:DECGRSAL02 /><urn:RMBLPHONE02>13821576911</urn:RMBLPHONE02><urn:CLTPHONE02>02153558550</urn:CLTPHONE02><urn:RINTERNET02>lisi@163.com</urn:RINTERNET02><urn:OCCPCODE02>A001</urn:OCCPCODE02><urn:ZNPIDCPYID02>Y</urn:ZNPIDCPYID02></cre1:item></urn:INSUREDINFO><urn:RELATION>02</urn:RELATION><urn:SELECTION /><urn:HEIGHT>0</urn:HEIGHT><urn:WEIGHT>0</urn:WEIGHT><urn:SMOKING>N</urn:SMOKING><urn:OCCUP>A001</urn:OCCUP><urn:QUESTIONARE><cre1:item><urn:QUESTIONLIST><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A03</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A04</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>0</urn:ANSWER><urn:QUESTIDF>A05</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>0</urn:ANSWER><urn:QUESTIDF>A06</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A07</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A08</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A09</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A10</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A11</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A12</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A13</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A14</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A15</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A16</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A17</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A18</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A19</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>A20</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>B01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>B02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>B03</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C03</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C04</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>C05</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>C06</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C07</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C08</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C09</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C10</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C11</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C12</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C13</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C14</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C15</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C16</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C17</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>C18</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>D01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER>N</urn:ANSWER><urn:QUESTIDF>D02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>D03</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>S01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>S02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>S03</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>S04</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>T01</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item><cre1:item><urn:QUESTION><cre1:item><urn:ANSWER /><urn:QUESTIDF>T02</urn:QUESTIDF></cre1:item></urn:QUESTION></cre1:item></urn:QUESTIONLIST><urn:QUESTSET>MTQBA</urn:QUESTSET></cre1:item></urn:QUESTIONARE><urn:HUWDCDTE>20130801</urn:HUWDCDTE><urn:COVLST><cre1:item><urn:COVINFO><cre1:item><urn:COVERAGE>01</urn:COVERAGE><urn:RIDER>00</urn:RIDER><urn:ZNPRDCODE>LA02BA</urn:ZNPRDCODE><urn:SUMIN>2120.00</urn:SUMIN><urn:RCESSAGE>105</urn:RCESSAGE><urn:RCESSTRM /><urn:PCESSAGE /><urn:PCESSTRM>1</urn:PCESSTRM><urn:BCESSAGE>50</urn:BCESSAGE><urn:BCESSTRM /><urn:MORTCLS>1</urn:MORTCLS><urn:INSTPRM>30000.00</urn:INSTPRM><urn:LMPCNT /><urn:ZPRFLG /><urn:ZNINVAMT /><urn:ZNTRM /><urn:ZUNIT>0.0</urn:ZUNIT><urn:LIVESNO>1</urn:LIVESNO><urn:PAYCLT /><urn:PAYBANKINFOR><cre1:item><urn:BANKCODE /><urn:BANKKEY /><urn:BANKACCKEY /><urn:BNKACTYP /><urn:BANKDESC /><urn:CURRCODE /><urn:DATEFROM /><urn:TIMESUSE /></cre1:item></urn:PAYBANKINFOR><urn:FREQANN>01</urn:FREQANN><urn:ADVANCE /><urn:ARREARS /><urn:GUARPERD /><urn:WITHPROP /><urn:WITHOPROP /><urn:NOMLIFE /><urn:DTHPERCN /><urn:DTHPERCO /><urn:PAYMENT><cre1:item><urn:PAYCLT02 /><urn:CLTYPE /><urn:RGPYMOP /><urn:REGPAYFREQ /><urn:PRCNT /><urn:CLAIMCUR /></cre1:item></urn:PAYMENT><urn:RSUNIN /><urn:PRCAMTIND /><urn:PRMFLST><cre1:item><urn:VRTFND01 /><urn:UALPRC01 /><urn:VRTFND02 /><urn:UALPRC02 /><urn:VRTFND03 /><urn:UALPRC03 /><urn:VRTFND04 /><urn:UALPRC04 /><urn:VRTFND05 /><urn:UALPRC05 /><urn:VRTFND06 /><urn:UALPRC06 /><urn:VRTFND07 /><urn:UALPRC07 /><urn:VRTFND08 /><urn:UALPRC08 /><urn:VRTFND09 /><urn:UALPRC09 /><urn:VRTFND10 /><urn:UALPRC10 /></cre1:item></urn:PRMFLST><urn:RGUFLST><cre1:item><urn:ZAVRTFND01 /><urn:ZNSPLAMT01 /><urn:ZAVRTFND02 /><urn:ZNSPLAMT02 /><urn:ZAVRTFND03 /><urn:ZNSPLAMT03 /><urn:ZAVRTFND04 /><urn:ZNSPLAMT04 /><urn:ZAVRTFND05 /><urn:ZNSPLAMT05 /><urn:ZAVRTFND06 /><urn:ZNSPLAMT06 /><urn:ZAVRTFND07 /><urn:ZNSPLAMT07 /><urn:ZAVRTFND08 /><urn:ZNSPLAMT08 /><urn:ZAVRTFND09 /><urn:ZNSPLAMT09 /><urn:ZAVRTFND10 /><urn:ZNSPLAMT10 /></cre1:item></urn:RGUFLST></cre1:item></urn:COVINFO></cre1:item></urn:COVLST></cre1:item></urn:INSURED></cre1:item></urn:INSLST><urn:BENEFICIARYLIST><cre1:item><urn:BENEFICIARY><cre1:item><urn:BNYTYPE>02</urn:BNYTYPE><urn:BNYSEL /><urn:SALUTL04>MR / MRS</urn:SALUTL04><urn:LSURNAME04>王五</urn:LSURNAME04><urn:DOB04>19850917</urn:DOB04><urn:CLTSEX04>M</urn:CLTSEX04><urn:MARRYD04 /><urn:ZACLTADDR04 /><urn:ADDRTYPE04>2</urn:ADDRTYPE04><urn:ZNBUSUT04 /><urn:CTRYCODE04>01</urn:CTRYCODE04><urn:NATLTY04>01</urn:NATLTY04><urn:IDNPRF04 /><urn:SECUITYNO04>220523850917341</urn:SECUITYNO04><urn:EXPDTE04>99991231</urn:EXPDTE04><urn:ZNPIDCPYID04>Y</urn:ZNPIDCPYID04><urn:CLTRELN02>02</urn:CLTRELN02><urn:BNYPC>100.0</urn:BNYPC><urn:ZBNYTLVL>1</urn:ZBNYTLVL><urn:EFFDATE /><urn:ZDCLMPLN /></cre1:item></urn:BENEFICIARY></cre1:item></urn:BENEFICIARYLIST><urn:FRTRECBANK><cre1:item><urn:BANKKEY02 /><urn:BANKACCKEY02 /><urn:BANKDESC02 /><urn:BNKACTYP02 /><urn:CURRCODE02 /><urn:DATEFROM01 /><urn:DATETO /></cre1:item></urn:FRTRECBANK><urn:SEQRECBANK><cre1:item><urn:BANKKEY03>ICBC</urn:BANKKEY03><urn:BANKACCKEY03>0123456789111110123</urn:BANKACCKEY03><urn:BANKDESC03>张三</urn:BANKDESC03><urn:BNKACTYP03 /><urn:CURRCODE03>CNY</urn:CURRCODE03><urn:DATEFROM02>20130801</urn:DATEFROM02><urn:DATETO02 /></cre1:item></urn:SEQRECBANK><urn:DOCORIGAMT>30000.00</urn:DOCORIGAMT><urn:TCHQDATE>20130801</urn:TCHQDATE><urn:TRANDATEX>20130805</urn:TRANDATEX><urn:RFCODE /><urn:PAYTYPE /><urn:BANKCODE /><urn:BANKDESC01R /><urn:BANKDESC03R /><urn:RFNUM /><urn:ZNOVRPAYOP>N</urn:ZNOVRPAYOP><urn:PACKAGEINFO><cre1:item><urn:ZNPKGCODE /><urn:TOTPRE /><urn:ZTOTSI /></cre1:item></urn:PACKAGEINFO><urn:GENERALREMARK><cre1:item><urn:LINE01 /><urn:LINE02 /></cre1:item></urn:GENERALREMARK><urn:SACSCODE /><urn:CAMPAIGN /><urn:ZNPRJTCD /><urn:ZNEPOLFLG /><urn:ZNBNKODR /><urn:ZNDISPER /><urn:ZNSPCTYP /><urn:ZNBILLNO /><urn:ZNINVBNK /><urn:ZAPOLFLD1 /><urn:ZAPOLFLD2 /><urn:ZAPOLFLD3 /><urn:ZAPOLFLD4 /><urn:ZAPOLFLD5>128000027691_U</urn:ZAPOLFLD5></cre1:item></urn:POLICY></cre1:item></urn:POLST></cre:in0>");

            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "createProposalservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA1"), TestMethod]
        public void LAcalPremiumserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<cal:in0 xmlns:cal=\"http://calPremium.msp.csc\" xmlns:urn=\"urn:BeanService\" xmlns:cal1=\"http://10.165.4.76:8080/axis/services/calPremiumservice\"><urn:BRANCH>NJ</urn:BRANCH><urn:COMMITFLAG>Y</urn:COMMITFLAG><urn:COMPANY>2</urn:COMPANY><urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD><urn:LANGUAGE>S</urn:LANGUAGE><urn:OBJECTID>PRM</urn:OBJECTID><urn:PASSWORD>MSPuser1)</urn:PASSWORD><urn:USRPRF>MSPNCLA</urn:USRPRF><urn:VERBID>CAL</urn:VERBID><urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC><urn:PREMIUM><cal1:item><urn:BILLCURR>CNY</urn:BILLCURR><urn:BILLFREQ>12</urn:BILLFREQ><urn:CHDRTYPE /><urn:CNTBRANCH>NJ</urn:CNTBRANCH><urn:CNTCURR>CNY</urn:CNTCURR><urn:INSUREDLIST><cal1:item><urn:INSURED><cal1:item><urn:CLTDOB>19800101</urn:CLTDOB><urn:COVERAGELIST><cal1:item><urn:COVERAGEINFO><cal1:item><urn:BENPLN /><urn:CCDATE>20121025</urn:CCDATE><urn:COVERAGE>01</urn:COVERAGE><urn:INSTPRM>22.50000000</urn:INSTPRM><urn:JLSEX /><urn:LIVESNO>1</urn:LIVESNO><urn:PCESSAGE>0</urn:PCESSAGE><urn:PCESSTRM>1</urn:PCESSTRM><urn:RCESSAGE>0</urn:RCESSAGE><urn:RCESSTRM>1</urn:RCESSTRM><urn:RIDER>00</urn:RIDER><urn:SUMIN>100000</urn:SUMIN><urn:ZNDISPER>1</urn:ZNDISPER><urn:ZNJLAGE /><urn:ZNPRDCODE>TPA203</urn:ZNPRDCODE><urn:ZNRFAGE /></cal1:item></urn:COVERAGEINFO></cal1:item><cal1:item><urn:COVERAGEINFO><cal1:item><urn:BENPLN /><urn:CCDATE>20121025</urn:CCDATE><urn:COVERAGE>01</urn:COVERAGE><urn:INSTPRM>10.10000000</urn:INSTPRM><urn:JLSEX /><urn:LIVESNO>1</urn:LIVESNO><urn:PCESSAGE>0</urn:PCESSAGE><urn:PCESSTRM>1</urn:PCESSTRM><urn:RCESSAGE>0</urn:RCESSAGE><urn:RCESSTRM>1</urn:RCESSTRM><urn:RIDER>01</urn:RIDER><urn:SUMIN>100000</urn:SUMIN><urn:ZNDISPER>1</urn:ZNDISPER><urn:ZNJLAGE /><urn:ZNPRDCODE>TTA202</urn:ZNPRDCODE><urn:ZNRFAGE /></cal1:item></urn:COVERAGEINFO></cal1:item></urn:COVERAGELIST><urn:INSAGE>32</urn:INSAGE><urn:LIFCNUM /><urn:LIFE>01</urn:LIFE><urn:OCCUPD>B102</urn:OCCUPD><urn:PACKAGEINFO><cal1:item><urn:TOTPRE>0</urn:TOTPRE><urn:ZNPKGCODE>TPA203</urn:ZNPKGCODE><urn:ZTOTSI>0</urn:ZTOTSI></cal1:item></urn:PACKAGEINFO><urn:SEX>F</urn:SEX></cal1:item></urn:INSURED></cal1:item></urn:INSUREDLIST><urn:OCCDATE>20121025</urn:OCCDATE><urn:POLICYOWNER><cal1:item><urn:AGE>32</urn:AGE><urn:CLTSEX>M</urn:CLTSEX><urn:DOB>19800101</urn:DOB><urn:OCCUP>B102</urn:OCCUP><urn:OWNERSEL /></cal1:item></urn:POLICYOWNER><urn:TTMPRCNO /><urn:ZNBAKFLD></urn:ZNBAKFLD></cal1:item></urn:PREMIUM></cal:in0>");

            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "calPremiumservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA1"), TestMethod]
        public void LAupdateClientInfserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateClientInf.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CLTIND>N</urn:CLTIND> <urn:CLTPHONE01>88888888</urn:CLTPHONE01> <urn:CLTPHONE02>12344321</urn:CLTPHONE02> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:INCLNTNUM>60005522</urn:INCLNTNUM> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>CPU</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:RMBLPHONE>13601233333</urn:RMBLPHONE> <urn:SUPPRESSRCLRSC>N</urn:SUPPRESSRCLRSC> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "updateClientInfservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA1"), TestMethod]
        public void LAapplyContractUpdateTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<app:in0 xmlns:app=\"http://applyContractUpdate.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013090</urn:CHDRSEL> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:EFFDATE>20121119</urn:EFFDATE> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>PRG</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>REG</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC> <urn:ZNPOSTRCD>T622</urn:ZNPOSTRCD> <urn:ZNREGTC>01</urn:ZNREGTC></app:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "applyContractUpdateservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA1"), TestMethod]
        public void LAupdateDispatchAddTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "updateDispatchAddservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("AURA"), TestMethod]
        public void AURAMessageFromLATest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>400000000257_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>5</ZNEXTSYS><PRT1OPT /><PRT2OPT /><ZNGPCNO /><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>400000000257</TTMPRCNO><Chdrnum>00013458</Chdrnum><OCCDATE>20121123</OCCDATE><HPROPDTE>20121123</HPROPDTE><HPRRCVDT>20121123</HPRRCVDT><ZDDTEDIF /><PolicyOwner><OWNERSEL>60007330</OWNERSEL><SALUTL>MR/MRS</SALUTL><LSURNAME>张五六</LSURNAME><DOB>19770307</DOB><Age>35</Age><ZDDAYS /><CLTSEX>M</CLTSEX><MARRYD /><ZACLTADDR>333333</ZACLTADDR><CLTPCODE>333333</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>324234</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>110108197703070114</SECUITYNO><EXPDTE /><INCPRF /><INCDESC /><DECGRSAL>2000000</DECGRSAL><RMBLPHONE>33333333333</RMBLPHONE><CLTPHONE>33333333</CLTPHONE><RINTERNET>WER@15.COM</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID /></PolicyOwner><OWNRISKSILIST><ZNRSKCD /><SUMINS>.00</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT /><ZNFOPT>02</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>01</REGISTER><SRCEBUS>3</SRCEBUS><DLVRMODE>01</DLVRMODE><ZAPSTADD>333333</ZAPSTADD><CLTPCODE03>333333</CLTPCODE03><ZNAGNTSEL>8609802649</ZNAGNTSEL><AGCOMRT>100.00</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC>.00</SPLITC></SubAgentList><ZNCSMNAME>8609000636</ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02 /><SUMINS02>.00</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60007330</LIFCNUM><SALUTL02>MR/MRS</SALUTL02><LSURNAME02>张五六</LSURNAME02><DOB02>19770307</DOB02><Age02>35</Age02><ZDDays02 /><CLTSEX02>M</CLTSEX02><MARRYD02 /><ZACLTADDR02>333333</ZACLTADDR02><CLTPCODE02>333333</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>324234</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>110108197703070114</SECUITYNO02><EXPDTE02 /><INCPRF02 /><INCDESC02 /><DECGRSAL02>2000000</DECGRSAL02><RMBLPHONE02>33333333333</RMBLPHONE02><CLTPHONE02>33333333</CLTPHONE02><RINTERNET02>WER@15.COM</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02 /></InsuredInfo><RELATION>00</RELATION><SELECTION>NIL</SELECTION><HEIGHT>180</HEIGHT><WEIGHT>70</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A03</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A04</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A05</QUESTIDF><ANSWER>180</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>70</ANSWER></Question><Question><QUESTIDF>A07</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A08</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A09</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A10</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A11</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A12</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A13</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A14</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A15</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A16</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A17</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A18</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A19</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A20</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>B01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>B02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C03</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C04</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C07</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C08</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C09</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C10</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C11</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C12</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C13</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C14</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C15</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C16</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C17</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C18</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>D01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>D02</QUESTIDF><ANSWER>N</ANSWER></Question></QuestionList></Questionare><HUWDCDTE>99999999</HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>PED11BA</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE>0</RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>7880.00</INSTPRM><LMPCNT>.00</LMPCNT><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT /><LIVESNO>0</LIVESNO><PAYCLT>60007330</PAYCLT><PayBankInfor><BANKCODE /><BANKKEY /><BANKACCKEY /><BANKDESC /><BNKACTYP /><CURRCODE /><DATEFROM /><TIMESUSE /></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN>.00</DTHPERCN><DTHPERCO>.00</DTHPERCO><Payment><PAYCLT02 /><CLTYPE /><RGPYMOP /><REGPAYFREQ /><PRCNT>.00</PRCNT><CLAIMCUR /></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01>0</VRTFND01><UALPRC01>.00</UALPRC01><VRTFND02>0</VRTFND02><UALPRC02>.00</UALPRC02><VRTFND03>0</VRTFND03><UALPRC03>.00</UALPRC03><VRTFND04>0</VRTFND04><UALPRC04>.00</UALPRC04><VRTFND05>0</VRTFND05><UALPRC05>.00</UALPRC05><VRTFND06>0</VRTFND06><UALPRC06>.00</UALPRC06><VRTFND07>0</VRTFND07><UALPRC07>.00</UALPRC07><VRTFND08>0</VRTFND08><UALPRC08>.00</UALPRC08><VRTFND09>0</VRTFND09><UALPRC09>.00</UALPRC09><VRTFND10>0</VRTFND10><UALPRC10>.00</UALPRC10></PRMFLST><RGUFLST><ZAVRTFND01>0</ZAVRTFND01><ZNSPLAMT01>.00</ZNSPLAMT01><ZAVRTFND02>0</ZAVRTFND02><ZNSPLAMT02>.00</ZNSPLAMT02><ZAVRTFND03>0</ZAVRTFND03><ZNSPLAMT03>.00</ZNSPLAMT03><ZAVRTFND04>0</ZAVRTFND04><ZNSPLAMT04>.00</ZNSPLAMT04><ZAVRTFND05>0</ZAVRTFND05><ZNSPLAMT05>.00</ZNSPLAMT05><ZAVRTFND06>0</ZAVRTFND06><ZNSPLAMT06>.00</ZNSPLAMT06><ZAVRTFND07>0</ZAVRTFND07><ZNSPLAMT07>.00</ZNSPLAMT07><ZAVRTFND08>0</ZAVRTFND08><ZNSPLAMT08>.00</ZNSPLAMT08><ZAVRTFND09>0</ZAVRTFND09><ZNSPLAMT09>.00</ZNSPLAMT09><ZAVRTFND10>0</ZAVRTFND10><ZNSPLAMT10>.00</ZNSPLAMT10></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL>60007330</BNYSEL><SALUTL04>MR/MRS</SALUTL04><LSURNAME04>张五六</LSURNAME04><DOB04>19770307</DOB04><CLTSEX04>M</CLTSEX04><MARRYD04 /><ZACLTADDR04>333333</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>324234</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>01</IDNPRF04><SECUITYNO04>110108197703070114</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04 /><CLTRELN02>00</CLTRELN02><BNYPC>100.00</BNYPC><ZBNYTLVL>1</ZBNYTLVL><EFFDATE>20121123</EFFDATE><ZDCLMPLN>Y</ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX /><BANKCODER /><TCHQDATE /><BANKDESC01R /><BANKDESC03R /><RFCODE /><RFNUM /><PAYTYPE /><DOCORIGAMT>.00</DOCORIGAMT><ZNOVRPAYOP /><PackageInfo><ZNPKGCODE /><TOTPRE>.00</TOTPRE><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01 /><ALINE02 /></GeneralRemark><SACSCODE /><SACSTYPE /><CAMPAIGN /><ZNPRJTCD /><ZNEPOLFLG /><ZNBNKODR /><ZNDISPER>1.00</ZNDISPER><ZNSPCTYP /><ZNBILLNO /><ZNINVBNK /><ZNVIPIND /><ZAPOLFLD1 /><ZAPOLFLD2 /><ZAPOLFLD3 /><ZAPOLFLD4 /><ZAPOLFLD5 /></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60007330</OWNERSEL05><LSURNAME05>张五六</LSURNAME05><DOB05 /><CLTSEX05>M</CLTSEX05><SECUITYNO05 /><RMBLPHONE05>33333333333</RMBLPHONE05><CLTPHONE05>33333333</CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60007330</LIFCNUM06><LSURNAME06>张五六</LSURNAME06><DOB06>19770307</DOB06><CLTSEX06>M</CLTSEX06><SECUITYNO06 /><RMBLPHONE06>33333333333</RMBLPHONE06><CLTPHONE06>33333333</CLTPHONE06></Insured></InsuredList><BeneficiaryList><Beneficiary><LSURNAME07>张五六</LSURNAME07><BNYSEL07>60007330</BNYSEL07><DOB07>19770307</DOB07><CLTSEX07>M</CLTSEX07><SECUITYNO07 /></Beneficiary></BeneficiaryList><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>400000000257</TTMPRCNO02><CHDRNUM02>00013458</CHDRNUM02><ZNAGNTSEL02>8609802649</ZNAGNTSEL02><CHDRTYPE /><ZNCSMNAME02>8609000636</ZNCSMNAME02><HPROPDTE02>20121123</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><Coverage02>01</Coverage02><RIDER02>00</RIDER02><ZNPRDCODE02>PED11BA</ZNPRDCODE02><RCESSAGE02 /><RCESSTRM02>20</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "updateDispaValidationPolicytchAddservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LAICBCFreeValiserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "ICBCFreeValiservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA2"), TestMethod]
        public void LAICBCMantValiserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "ICBCMantValiservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("LA2"), TestMethod]
        public void LAICBCSurrValiserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<icb:in0 xmlns:urn=\"urn:BeanService\" xmlns:icb=\"http://ICBCSurrVali.msp.csc\" xmlns:icb1=\"http://localhost:8080/axis/services/ICBCSurrValiservice\"><urn:ADDITIONALFIELDS><icb1:item><urn:CHDRINFO><icb1:item><urn:INCHDRNUM>98819508</urn:INCHDRNUM><urn:TRDATE>2014-05-28</urn:TRDATE></icb1:item></urn:CHDRINFO></icb1:item></urn:ADDITIONALFIELDS><urn:BRANCH>FS</urn:BRANCH><urn:COMMITFLAG>N</urn:COMMITFLAG><urn:COMPANY>1</urn:COMPANY><urn:IGNOREDRIVERHELD>N</urn:IGNOREDRIVERHELD><urn:LANGUAGE>S</urn:LANGUAGE><urn:OBJECTID>SUR</urn:OBJECTID><urn:PASSWORD>user123</urn:PASSWORD><urn:USRPRF>MSP</urn:USRPRF><urn:VERBID>VAL</urn:VERBID><urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></icb:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "ICBCSurrValiservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LABRWVALserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "BRWVALservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LAposregserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "posregservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LAPOSPRCserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "POSPRCservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LAPOLENQserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "POLENQservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }


        [Owner("LA2"), TestMethod]
        public void LACLIRSKserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "CLIRSKservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("EBS"), TestMethod]
        public void EBScreateProposalTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<Records><Record><Policy><ContNo>2013000000110710</ContNo><ProposalContNo>2013000000110713</ProposalContNo><ContType>I</ContType><ContPlanCode></ContPlanCode><ContPlanName>中美联泰大都会人寿保险有限公司E游宝保险计划</ContPlanName><ContPrem>1050.00</ContPrem><ContAmnt>650000</ContAmnt><ContSource>ICBC-Interface</ContSource><ContApplyDate>20131115</ContApplyDate><ContAcceptDate>20131115</ContAcceptDate><ContEffectiveDate>20131115</ContEffectiveDate><ContEffectiveTime>00:00:00</ContEffectiveTime><ContSignDate>20131114</ContSignDate><ContSignTime>00:00:00</ContSignTime><ContEndDate>20141114</ContEndDate><ContCancelDate></ContCancelDate><ContCancelTime></ContCancelTime><ContPeriod>1</ContPeriod><contPeriodType>Y</contPeriodType><ContState>0</ContState><PayPeriod>0</PayPeriod><PayPeriodType>S</PayPeriodType><PayInterval>S</PayInterval><ContCompanyName>武汉分公司</ContCompanyName><BankNo>HK001900AA0022</BankNo><AreaName>汉口银行黄鹤楼支行</AreaName><ListProject>ICBC00000000001:HK-iCare</ListProject><PolicyCoverage><Coverage><IsPlan>0</IsPlan><PolPrem>500.00</PolPrem><PolAmnt>50000</PolAmnt><RiskCode>SLT01BA</RiskCode><PlanCode></PlanCode><RiskName>中美联泰大都会人寿保险有限公司E游宝意外身故定期寿险</RiskName></Coverage><Coverage><IsPlan>0</IsPlan><PolPrem>300.00</PolPrem><PolAmnt>500000</PolAmnt><RiskCode>CC08BA</RiskCode><PlanCode></PlanCode><RiskName>中美联泰大都会人寿保险有限公司E游宝交通工具意外身故定期寿险</RiskName></Coverage><Coverage><IsPlan>0</IsPlan><PolPrem>150.00</PolPrem><PolAmnt>50000</PolAmnt><RiskCode>AMR04BA</RiskCode><PlanCode></PlanCode><RiskName>中美联泰大都会人寿保险有限公司附加E游宝意外伤害医疗保险（A款）</RiskName></Coverage><Coverage><IsPlan>1</IsPlan><PolPrem>100.00</PolPrem><PolAmnt>50000</PolAmnt><RiskCode>ADD04BA</RiskCode><PlanCode>A</PlanCode><RiskName>中美联泰大都会人寿保险有限公司附加E游宝户外运动意外伤害保险</RiskName></Coverage></PolicyCoverage><Holder><PolicyHolderNo></PolicyHolderNo><PolicyHolderName>测试1</PolicyHolderName><PolicyHolderSex>F</PolicyHolderSex><PolicyHolderBirthday>19881229</PolicyHolderBirthday><PolicyHolderIDType>0</PolicyHolderIDType><PolicyHolderIDNo>320981198812292946</PolicyHolderIDNo><PolicyHolderInsureAge>25</PolicyHolderInsureAge><PolicyHolderMobile>15862393917</PolicyHolderMobile><PolicyHolderEmail>daduhui@163.com</PolicyHolderEmail><PolicyHolderPost>440000</PolicyHolderPost><PolicyHolderAddress>武汉市汉口区光谷广场24号</PolicyHolderAddress><HolderToInsuredRelation>00</HolderToInsuredRelation></Holder><Insured><InsuredNo></InsuredNo><InsuredName>测试1</InsuredName><InsuredSex>F</InsuredSex><InsuredBirthday>19881229</InsuredBirthday><InsuredIDType>0</InsuredIDType><InsuredIDNo>320981198812292946</InsuredIDNo><InsuredOccupationType>10</InsuredOccupationType><InsuredInsureAge>25</InsuredInsureAge><InsuredMobile>15862393917</InsuredMobile><InsuredEmail>daduhui@163.com</InsuredEmail><InsuredPost>440000</InsuredPost><InsuredAddress>武汉市汉口区光谷广场24号</InsuredAddress></Insured><Beneficiaries><Beneficiary><BenefitType>1</BenefitType><BenefitDisMode>1</BenefitDisMode><BenefitName>测试受益人</BenefitName><BenefitSex>M</BenefitSex><BenefitBirthday>19881212</BenefitBirthday><BenefitIdType>2</BenefitIdType><BenefitIdNo>16456465</BenefitIdNo><BenefitAddress>北京市西城区东方广场24号</BenefitAddress><BenefitToInsuredRelation>39</BenefitToInsuredRelation><BenefitDisRate>100</BenefitDisRate></Beneficiary></Beneficiaries></Policy></Record></Records>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "EBS",
                    SrvOpName = "EBScreateProposal",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("EBS"), TestMethod]
        public void EBSLoginTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<Record><User><UserCode>test</UserCode><Password>1111111</Password><AgentType>1</AgentType></User></Record>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "EBS",
                    SrvOpName = "EBSLogin",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("EBS"), TestMethod]
        public void EBSStateUpdateTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<Record><proposal><UpdateDate /></proposal><Policy><UpdateDate>2013-11-14</UpdateDate></Policy><Riskassess><UpdateDate /></Riskassess></Record>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "EBS",
                    SrvOpName = "StateUpdate",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("EBS"), TestMethod]
        public void EBSSaveRiskassessTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<Record><RiskassessNo>ffff</RiskassessNo><ManageCom>8601</ManageCom><AgentType>0</AgentType><CustomerName>yyy1</CustomerName><HRCode>ddd</HRCode><UserLoginCode>test</UserLoginCode><BusinessType>1</BusinessType><GrpNature>1</GrpNature><NewPolicy>1</NewPolicy><Prem>4</Prem><Chance>1</Chance><RiskassessDate>2014-01-01</RiskassessDate><CValiDate>2014-01-01</CValiDate><EnsureFlag>0</EnsureFlag><FileName>gggg</FileName></Record>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "EBS",
                    SrvOpName = "SaveRiskassess",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [Owner("EBS"), TestMethod]
        public void EBSGetExistCustomersTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<Record><AgentID>33</AgentID><CompanyName>中美联泰</CompanyName></Record>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "EBS",
                    SrvOpName = "GetExistCustomers",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        /// <summary>
        /// Create test code template
        /// </summary>
        /// <param name="receiverID"></param>
        /// <param name="srvOpName"></param>
        /// <param name="content"></param>
        private static void CreateTestTemplate(string receiverID, string srvOpName, string content)
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml(content);

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = receiverID,
                    SrvOpName = srvOpName,
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");

        }

        [Owner("EBS"), TestMethod]
        public void EBSGetSalesInfosTest()
        {
            CreateTestTemplate("EBS", "GetSalesInfos",
                "<Record><AgentID>test</AgentID><AgentType>1</AgentType><Channel>1</Channel><Sales/><IssueDateFrom>2013-8-25</IssueDateFrom><IssueDateTo>2013-12-25</IssueDateTo><CValiDateFrom>2013-05-25</CValiDateFrom><CValiDateTo>2014-05-25</CValiDateTo><PageSize>10</PageSize><CurrPage>1</CurrPage></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSGetEBAppInsuerdsTest()
        {
            CreateTestTemplate("EBS", "GetEBAppInsuerds",
                "<Record><AgentID>8601001</AgentID><AgentType>2</AgentType><InsuredName>沈舜佳</InsuredName><PolicyCode>GP04010000100157</PolicyCode><PayperNumber/><PageSize>10</PageSize><CurrPage>1</CurrPage></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSGetEBAppProdInfoTest()
        {
            CreateTestTemplate("EBS", "GetEBAppProdInfo",
                "<Record><PolicyCode>GP01010000100250</PolicyCode></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSGetEBClaimInfoListTest()
        {
            CreateTestTemplate("EBS", "GetEBClaimInfoList",
                "<Record><AgentID>8601004032</AgentID><AgentType>2</AgentType><PolicyCode/><ClaimStatus/><InsuredName/><ClaimStartDateFrom/><ClaimStartDateTo/><PageSize>10</PageSize><CurrPage>1</CurrPage></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSGetEBApplicationListTest()
        {
            CreateTestTemplate("EBS", "GetEBApplicationList",
                "<Record><AgentID>test</AgentID><AgentType>1</AgentType><CustomerName>北京</CustomerName><IndustryCode/><PolicyCode/><EmployeeCountFrom>1</EmployeeCountFrom><EmployeeCountTo>50</EmployeeCountTo><CValiDateFrom>2012-5-26</CValiDateFrom><CValiDateTo>2012-5-29</CValiDateTo><PageSize>10</PageSize><CurrPage>1</CurrPage></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSMobileSalesServiceTest()
        {
            CreateTestTemplate("EBS", "MobileSalesService",
                "<Record><Policy><PrtNo/><CValiDate>2014-03-06</CValiDate><PolApplyDate>2014-03-05</PolApplyDate><InsuredRelation>06</InsuredRelation><PayIntv>0</PayIntv><InsuYear>1</InsuYear><InsuYearFlag>Y</InsuYearFlag><Holder><CustomerNo/><GrpName>中美联泰大都会人寿保险有限公司</GrpName><GrpNature>07</GrpNature><BusinessType>03</BusinessType><Peoples>7000</Peoples><BusinessLicenseCode/><OrganizationCode/><TaxRegCode/><SheBaoCode/><Province>110000</Province><City>110100</City><Country>110108</Country><GrpAddress>北京市东单东方广场</GrpAddress><GrpZipCode>100000</GrpZipCode><Corporation>CEO</Corporation><LinkMan1>大都会</LinkMan1><Phone1>8611966</Phone1><E_Mail1/><Fax/></Holder><Coverages><Coverage><RiskCode/><RiskName/></Coverage><Coverage><RiskCode/><RiskName/></Coverage></Coverages><ContPlans><ContPlan><ContPlanCode>A</ContPlanCode><ContPlanName>计划A</ContPlanName></ContPlan><ContPlan><ContPlanCode>B</ContPlanCode><ContPlanName>计划B</ContPlanName></ContPlan></ContPlans></Policy></Record>");
        }

        [Owner("EBS"), TestMethod]
        public void EBSAgentComQueryTest()
        {
            CreateTestTemplate("EBS", "AgentComQuery",
                "<Record><AgentCom><ManageCom>8601</ManageCom><AgentComName/></AgentCom></Record>");
        }

        [Owner("CCS"), TestMethod]
        public void CCSgetStraightBrushLATest()
        {
            CreateTestTemplate("PASS", "getStraightBrushLA",
                "<Msg><serviceType>business</serviceType><json>[{'SECURECODE':'T111','TASKID':'0000000111','BRANCH':'SH','CHDRSEL':'00009153','COMPANY':'1','PRTSHD':'O','ZNEPOLFLG':'02'},{'SECURECODE':'T111','TASKID':'0000000112','BRANCH':'SH','CHDRSEL':'00009153','COMPANY':'1','PRTSHD':'B','ZNEPOLFLG':'02'}]</json><systemFlag>CCS</systemFlag><workNo>0000101</workNo><LAcomtNo>0000102</LAcomtNo><cumtNo>0000103</cumtNo></Msg>");
        }

        [Owner("CCS"), TestMethod]
        public void CCSrulesCallRemoteTest()
        {
            CreateTestTemplate("PASS", "rulesCallRemote",
                "<Msg><changeCode>T101</changeCode><policyNum></policyNum><newBankKey>GDB_TM</newBankKey><oldBankKey>GDB_TM</oldBankKey><payYearPeriod></payYearPeriod><reportFlag>N</reportFlag><projectCode>PT400015</projectCode></Msg>");
        }

        [Owner("CCS"), TestMethod]
        public void CCStaskAcceptedIncludeModifyInfoTest()
        {
            CreateTestTemplate("PASS", "taskAcceptedIncludeModifyInfo",
                "<Msg><modJson>[{'policyNo':'00009153','insuranceNo':'PE24','secureCode':'T101','contLetter':'Y','isTelVerify':'N','verifyTel':'13522233332','complaint':'N','applicationDate':'2014-05-20','company':'1','branch':'SH','remark':'备注','newFee':'D','newName':'张三','newBank':'中国银行','newBankAccount':'23445555555554'}]</modJson><policyNo>00009153</policyNo><cumtNo>00077012</cumtNo><workNo>00003333</workNo><listSource>16</listSource><applicationDate>20140701</applicationDate><remark>测试</remark> </Msg>");
        }

        [Owner("CCS"), TestMethod]
        public void CCSallRulesCallRemoteTest()
        {
            CreateTestTemplate("PASS", "allRulesCallRemote",
                "<Msg><handleProject>T101</handleProject><contextJson>{'payerNum':'73765164','customerNum':'73765164','branchCode':'SH','bankKey':'CITI','customerNo':'73765164','insuredPersonNo':'73765164','chdrcoy':'1','chdrnum':'00009153','policyStatus':'s','premiumStatus':'s','billchnl':'73765164','oldBankKey':'CITI','project':'73765164'}</contextJson></Msg>");
        }

        [Owner("CCS"), TestMethod]
        public void CCSallWebserviceTest()
        {
            CreateTestTemplate("PASS", "allWebservice",
                "<Msg><type>001</type><contextJson>DSFSDFSDFASDFASD</contextJson><remark></remark></Msg>");
        }

        [Owner("LA3"), TestMethod]
        public void LASTPcrtserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<stp:in0 xmlns:stp=\"http://STPcrt.msp.csc\" xmlns:urn=\"urn:BeanService\" xmlns:stp1=\"http://10.164.25.27:8080/axis/services/STPcrtservice\"><urn:BRANCH>BJ</urn:BRANCH><urn:COMMITFLAG>Y</urn:COMMITFLAG><urn:COMPANY>5</urn:COMPANY><urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD><urn:LANGUAGE>S</urn:LANGUAGE><urn:OBJECTID>SGT</urn:OBJECTID><urn:PASSWORD>LUWEI2</urn:PASSWORD><urn:STPAPPNO>000011112015060501</urn:STPAPPNO><urn:STPBANKACCKEY>CMB</urn:STPBANKACCKEY><urn:STPBANKKEY>3232432400011</urn:STPBANKKEY><urn:STPBRANCH>BJ</urn:STPBRANCH><urn:STPCHDRNUM>XXXX</urn:STPCHDRNUM><urn:STPCOMPANY>5</urn:STPCOMPANY><urn:STPCOVERAGE>01</urn:STPCOVERAGE><urn:STPEFFDATE>20150605</urn:STPEFFDATE><urn:STPFUNDS><!--Zero or more repetitions:--><stp1:item><urn:STPUALPRC01>?</urn:STPUALPRC01><urn:STPUALPRC02>?</urn:STPUALPRC02><urn:STPUALPRC03>?</urn:STPUALPRC03><urn:STPUALPRC04>?</urn:STPUALPRC04><urn:STPUALPRC05>?</urn:STPUALPRC05><urn:STPUALPRC06>?</urn:STPUALPRC06><urn:STPUALPRC07>?</urn:STPUALPRC07><urn:STPUALPRC08>?</urn:STPUALPRC08><urn:STPUALPRC09>?</urn:STPUALPRC09><urn:STPUALPRC10>?</urn:STPUALPRC10><urn:STPVRTFND01>?</urn:STPVRTFND01><urn:STPVRTFND02>?</urn:STPVRTFND02><urn:STPVRTFND03>?</urn:STPVRTFND03><urn:STPVRTFND04>?</urn:STPVRTFND04><urn:STPVRTFND05>?</urn:STPVRTFND05><urn:STPVRTFND06>?</urn:STPVRTFND06><urn:STPVRTFND07>?</urn:STPVRTFND07><urn:STPVRTFND08>?</urn:STPVRTFND08><urn:STPVRTFND09>?</urn:STPVRTFND09><urn:STPVRTFND10>?</urn:STPVRTFND10></stp1:item></urn:STPFUNDS><urn:STPINSTPREM>20</urn:STPINSTPREM><urn:STPLIFE>01</urn:STPLIFE><urn:STPMOP>D</urn:STPMOP><urn:STPPAYTYPE>H</urn:STPPAYTYPE><urn:STPPCAMTIND>A</urn:STPPCAMTIND><urn:STPPLNSFX>0000</urn:STPPLNSFX><urn:STPRIDER>00</urn:STPRIDER><urn:STPZNPOSTRCD>TN33</urn:STPZNPOSTRCD><urn:STPZNREGTC>00</urn:STPZNREGTC><urn:USRPRF>WLU4</urn:USRPRF><urn:VERBID>CRT</urn:VERBID><urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></stp:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "STPcrtservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
          
        }

    }
}
